package com.atguigu.team.domain;

public class Architect extends Designer{
    private int stock;
    //构造器
    public Architect(){
    }
    public Architect(int id, String name, int salary, double bonus, Equipment equipment, int age, int stock) {
        super(id, name, salary, bonus, equipment, age);
        this.stock = stock;
    }
    //set方法
    public void setStock(int stock) {
        this.stock = stock;
    }
    //get方法
    public int getStock() {
        return stock;
    }

    @Override
    public String toString() {
        return getDetails()+"\t架构师\t"+getStatus()+"\t"+getBonus()+"\t"+getStock()+"\t"+getEquipment().getDescription();
    }
    @Override
    public String getDetailsForTeam(){
        return getMemberId()+"/"+getId()+"\t"+getName()+"\t"+getAge()+"\t"+getSalary()+"\t"+"架构师\t"+getBonus()+"\t"+getStock();
    }
}
